/** @author KoopaXross (Andreas Paulsen)
 */

package no.hib.dat102.test;

import static org.junit.Assert.*;

import org.junit.Test;

public class CDtestrun {
	
	@Test
	public void testValidNumber(){
		assertTrue(CDtest.isValidNumber(2957));
		assertFalse(CDtest.isValidNumber(-635));
	}
	
	@Test
	public void testValidArtist(){
		assertTrue(CDtest.isValidArtist("50 Cent"));
		assertTrue(CDtest.isValidArtist("Z"));
		assertFalse(CDtest.isValidArtist(""));
	}
	
	@Test
	public void testValidTitle(){
		assertTrue(CDtest.isValidTitle("something somehting"));
		assertTrue(CDtest.isValidTitle("X"));
		assertFalse(CDtest.isValidTitle(""));
	}
	
	@Test
	public void testValidYear(){
		assertTrue(CDtest.isValidYear(1980));
		assertFalse(CDtest.isValidYear(1960));
	}
	
	@Test
	public void testValidPublisher(){
		assertTrue(CDtest.isValidPublisher("Screw This"));
		assertTrue(CDtest.isValidPublisher("S"));
		assertFalse(CDtest.isValidPublisher(""));
	}
}
